package com.mail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mail.common.utils.PageUtils;
import com.mail.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author andy
 * @email litaomailx@163.com
 * @date 2021-08-08 15:57:07
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);
    
    List<CategoryEntity> listWithTree();
    
    void removeMenuByIds(List<Long> asList);
    
    /**
     * 找到 catelogId 的完整路径
     * [父路径/子路径/孙路径]
     */
    Long[] findCatelogPath(Long catelogId);
    
    void updateCascade(CategoryEntity category);
}

